package com.zrc.plugin;

import static android.widget.Toast.*;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

public class TestActivity extends BaseActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);

        Intent intent = getIntent();
        String wangzs = intent.getStringExtra("data");
        TextView textView1 = findViewById(R.id.testTv1);
        textView1.setText(wangzs);

        findViewById(R.id.intentNew).setOnClickListener(view -> {
            Toast.makeText(activity,"nihao", LENGTH_LONG).show();
        });
    }
}